<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
			<script>
			$(function() {
				//society index的  信息折叠 js
				var offset = $('#fold').offset();
				var offset_nav = $('#index_nav').offset();
			    $('#hidden_div').css('margin-left', (offset.left-offset_nav.left)+"px");
				$('#fold_Symbol').click(function() {
					$('#hidden_div').show();
					if ($(this).text().indexOf('-') > -1) {
			            $('#hidden_div').fadeOut();
			            $(this).text("[+]");
					} else {
			            $('#hidden_div').show("100");
			            $(this).text("[-]");
					}
				});
			});
			</script>
			<div id='index_nav'>
			<div id='fold'>
				<span id='fold_name'><?php echo $society['s_name'] . "(" . $this->common_data->_get_society_status_by_confirm_flag($society['confirm_FLAG']) . ") - 社团信息";?></span>
				<span id='fold_Symbol'>[+]</span>
			</div>
			<div id="hidden_div">
				<ul>
				<fieldset>
				<legend>社团基本信息</legend>
				  <li>社团名称:<span class="span"><?php echo $society['s_name']?></span></li>
				  <li>社团简称:<span class="span"><?php echo $society['abbr']?></span></li>
				  
				  <li>社团类别:<span class="span"><?php echo $this->common_data->_get_society_category_name_by_cid($society['s_category'])?>类</span></li>
				  <li>创办年份:<span class="span"><?php echo $society['since']?>年</span></li>
				  
				  <li>社团人数:<span class="span"><?php echo $society['member_num']?>人</span></li>
				  <li>社团主页:<span class="span"><a target="_blank" href="<?php echo $society['web_site']?>"><?php echo $society['web_site']?></a></span></li>
				</fieldset>
				<fieldset>
				<legend>社团负责人信息</legend>
				  <li>姓名:<span class="span"><?php echo $society['contact']?></span></li>
				  
				    <?php $temp_col_pro = $this->col_pro_data->_get_category_name_by_id($society['contact_col']) . ' - ' . $this->col_pro_data->_get_category_name_by_id($society['contact_pro']);?>
				  <li>学院专业:<span id='col_pro' class="span" title='<?php echo $temp_col_pro?>'><?php echo ellipsize($temp_col_pro, 15, .5)?></span></li>
				  
				  <li>手机:<span class="span"><?php echo $society['contact_phone']?></span></li>
				  <li>QQ：<span class="span"><?php echo $society['contact_qq']?></span></li>
				</fieldset>
				<fieldset>
				<legend>社团指导老师信息</legend>
				  <li>姓名:<span class="span"><?php echo $teacher['t_name']?></span></li>
				  <?php if (!empty($teacher['t_birth'])):?>
				  <li>生日:<span class="span"><?php echo $this->common->convert_birthday($teacher['t_birth'])?></span></li>
				  <?php endif;?>
				  
				  <li>手机:<span class="span"><?php echo $teacher['t_phone']?></span></li>
				  <?php if (!empty($teacher['t_birth'])):?>
				  <li>QQ：<span class="span"><?php echo $teacher['t_qq']?></span></li>
				  <?php endif;?>
				</fieldset>
				</ul>
				<a class='anchor_button' href='<?php echo BACKEND_SOCIETY_UPDATE_INFO_PATH ?>'>修改社团信息</a>
			</div>
		    </div>
		    
			<div>
				<ul id='list'>
					<li><p id='backend_nav_icon_1'></p><a title='在这儿您可以设置本社团的基本信息' href='<?php echo BACKEND_SOCIETY_UPDATE_INFO_PATH ?>'>社团基本设置</a></li>
		 			
					<?php if ($_SESSION['confirm_FLAG'] == SOCIETY_FINAL_PASS):?>
		 			<li><p id='backend_nav_icon_2'></p><a title='在这儿设置社团的LOGO图片，社团LOGO会显示在社团主页' href='<?php echo BACKEND_SOCIETY_UPLOAD_PATH . SOCIETY_LOGO ?>'>LOGO图片管理</a></li>
		 			<li><p id='backend_nav_icon_3'></p><a title='上传风采展示图片，社团风采展示图片会以幻灯片的形式展示在社团主页' href='<?php echo BACKEND_SOCIETY_UPLOAD_PATH . SOCIETY_SHOW ?>'>风采展示图片</a></li>
		 			<li><p id='backend_nav_icon_4'></p><a title='新闻发布管理' href='<?php echo BACKEND_SOCIETY_NEWS_LIST_PATH ?>'>新闻发布管理</a></li>
		 			<li><p id='backend_nav_icon_5'></p><a title='公告发布管理' href='<?php echo BACKEND_SOCIETY_ANNOUNCEMENT_LIST_PATH ?>'>公告发布管理</a></li>
		 			<li><p id='backend_nav_icon_7'></p><?php echo anchor_popup(BACKEND_SOCIETY_FILE_MANAGE_PATH, '文件同步管理', array());?></li>
		 			<?php endif;?>
		 			
		 			<li><p id='backend_nav_icon_8'></p><a title='登录密码修改' href='<?php echo BACKEND_SOCIETY_CHANGE_PASSWORD_PATH ?>'>登录密码修改</a></li>
		 			<li><p id='backend_nav_icon_9'></p><a title='电子邮箱修改' href='<?php echo BACKEND_SOCIETY_CHANGE_EMAIL_PATH ?>'>电子邮箱修改</a></li>
		 		</ul>
		 	</div>
		 	<?php if (isset($msg)):?>
		 	<div style='overflow: hidden;' id='society_msg_dialog' title='重要提示'>
		 	<span>您的社团于 <?php echo date("Y年m月d日 H时i分", $msg['time']);?></span><br />
			<span>被<?php echo $msg['execute_role'] . " " .$msg['execute_user']?> 判定为<span class='tip'><?php echo $msg['status']?></span></span><br />
			<fieldset style='margin: 5px 0 5px 0;'>
			<legend><b>详情说明</b></legend>
			<span><?php echo $msg['remark'];?></span><br />
			</fieldset>
			<span>备注信息：请立即<a href='<?php echo BACKEND_SOCIETY_UPDATE_INFO_PATH ?>'>修改社团信息</a>完成审核</span>
			</div>
			<script>
			$("#society_msg_dialog").dialog({
				resizable: false,
				draggable: false,
				modal: true,
				width: 373,
				height: 330,
				buttons: {
					"知道了。。": function() {
						$(this).dialog( "close" );
					}
				}
			});
			</script>
		 	<?php endif;?>
		 	
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php //$this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
